From 31633eb1481a485233c6833b3e4f28ba61207df1 Mon Sep 17 00:00:00 2001 From: "robertlipe@gmail.com" Date: Sun, 15 Sep 2013 05:50:21 +0000 Subject: [PATCH] Correct leak in bcr that I just introduced when I partially rolled back a failed experiment in making S1 and S2 into QStrings. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4610 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/bcr.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gpsbabel/bcr.cc b/gpsbabel/bcr.cc index b934bc8c4..295acbd56 100644 --- a/gpsbabel/bcr.cc +++ b/gpsbabel/bcr.cc @@ -488,6 +488,8 @@ bcr_route_header(const route_head* route) sout = QString("%1,%2,@,0").arg(s1).arg(s1); } bcr_write_line(fout, "STATION", &i, sout); + xfree(s1); + xfree(s2); } bcr_write_line(fout, "[ROUTE]", NULL, NULL); /* route section */ -- 2.30.2